<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../lib/axios.js"></script>
</head>
<body>
    <script>
        // 获取到下标
        let index = localStorage.getItem('index');
        // 请求服务器 , 把index上传到服务器, 服务器返回对应下标的数据
        axios.get(`/book/index/${index}`).then(result => {
            console.log(result.data);
        });

    </script>
</body>
</html>